{extend name="base/main" /}
{block name="body"}
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>分类 / 分类列表</h5>
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
                    <div class="col-sm-12">
                        <div class="search-area" id="toggle" style="margin-bottom: 15px;">
                            <form class="form-horizontal m-t" action="{:url('Classify/index')}" method="get">
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">登录名：</label>
                                    <div class="col-sm-3">
                                        <input name="username" type="text" class="form-control" value="{:input('username')}">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">昵称：</label>
                                    <div class="col-sm-3">
                                        <input name="nickname" type="text" class="form-control" value="{:input('nickname')}">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-4 col-sm-offset-1">
                                        <button class="btn btn-primary btn-sm" type="submit">搜索</button>
                                        <a href="{:url('auth_member/index')}" class="btn btn-default btn-sm">撤销搜索</a>
                                    </div>
                                </div>
                            </form>
                        </div>
                        <div class="fixed-table-toolbar">
                            <div class="bars pull-left" style="margin-top:0px;">
                                <a href="javascript:void(0);" class="btn btn-sm btn-primary search-toggle"><i class="fa fa-search"></i>&nbsp;&nbsp;搜索</a>
                                <a href="{:url('Classify/create')}" class="btn btn-sm btn-primary"><i class="fa fa-plus"></i>&nbsp;&nbsp;添加</a>
<<<<<<< HEAD
                                <a href="javascript:void(0);" class="btn btn-sm btn-primary confirm ajax-post" target-form="uid" url="{:url('auth_member/state',['status'=>1])}"><i class="fa fa-check"></i>&nbsp;&nbsp;启用</a>
                                <a href="javascript:void(0);" class="btn btn-sm btn-primary confirm ajax-post" target-form="uid" url="{:url('auth_member/state',['status'=>2])}"><i class="fa fa-ban"></i>&nbsp;&nbsp;禁用</a>
=======
                                <a href="javascript:void(0);" class="btn btn-sm btn-primary confirm ajax-post" target-form="id" url="{:url('auth_member/state',['status'=>1])}"><i class="fa fa-check"></i>&nbsp;&nbsp;启用</a>
                                <a href="javascript:void(0);" class="btn btn-sm btn-primary confirm ajax-post" target-form="id" url="{:url('auth_member/state',['status'=>2])}"><i class="fa fa-ban"></i>&nbsp;&nbsp;禁用</a>
>>>>>>> 244d0891c8a5b18fb59730fa4df1787085ccf662
                            </div>
                        </div>
                        <div class="example-wrap">
                            <div class="example">
                                <table class="table table-hover">
                                    <thead>
                                        <tr>
                                            <th><input type="checkbox" class="i-checks check-all"></th>
                                            <th>编号</th>
                                            <th>分类名称</th>
                                            <th>查看子分类</th>
                                            <th>排序</th>
                                            <th style="width: 180px;">操作</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        {volist name="data" id="vo"}
                                            <tr>
                                                <td>

                                                    <input type="checkbox" class="i-checks ids" name="id[]" value="{$vo.id}"/>

                                                </td>
                                                <td>{$vo.id}</td>
                                                <td>{$vo.name}</td>
<<<<<<< HEAD
                                                <td> <a href="{:url('Classify/update',['id'=>$vo['id']])}" class="btn btn-info btn-xs"><i class="fa fa-paste"></i>查看</a></td>
=======
                                                <td><a href="{:url('Classify/index',['pid'=>$vo['id']])}" >查看</a></td>
>>>>>>> 244d0891c8a5b18fb59730fa4df1787085ccf662

                                                <td>{$vo.sort}</td>
                                                <td>
                                                    <div class="actions">
<<<<<<< HEAD
                                                        <a href="{:url('Classify/update',['id'=>$vo['id']])}" class="btn btn-info btn-xs"><i class="fa fa-paste"></i> 编辑 </a>
                                                          <a href="javascript:void(0);" class="btn btn-danger btn-xs confirm tabledel ajax-post-a" target-form="id" data-id="{$vo.id}" url="{:url('Classify/remove',['id'=>$vo['id']])}"><i class="fa fa-trash"></i> 删除 </a>
=======
                                                        <a href="{:url('Classify/edit',['id'=>$vo['id']])}" class="btn btn-info btn-xs"><i class="fa fa-paste"></i> 编辑 </a>
                                                        <a href="javascript:void(0);" class="btn btn-danger btn-xs confirm tabledel ajax-post-a" target-form="id" data-id="{$vo.id}" url="{:url('Classify/remove',['id'=>$vo['id']])}"><i class="fa fa-trash"></i> 删除 </a>
>>>>>>> 244d0891c8a5b18fb59730fa4df1787085ccf662
                                                    </div>
                                                </td>
                                            </tr>
                                        {/volist}
                                    </tbody>
                                </table>
                            </div>
                            
                            
                        </div>
                    </div>
                </div>
                {$list->render()}
            </div>
            
        </div>
    </div>
{/block}